From: Jonas Dreßler Date: Fri, 19 Jun 2020 12:13:12 +0000 (+0200) Subject: windowPreview: Adapt to ClutterActor API changes X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~148 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=06df79286d987b4ff515fdefb3b877a98525876e;p=gnome-shell.git windowPreview: Adapt to ClutterActor API changes The API of clutter_actor_allocate_preferred_size() changed with https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1310, so adapt to this change and pass the origin to the function. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1322 --- diff --git a/js/ui/windowPreview.js b/js/ui/windowPreview.js index 48d42c87d..5630ba5e3 100644 --- a/js/ui/windowPreview.js +++ b/js/ui/windowPreview.js @@ -97,7 +97,7 @@ var WindowPreviewLayout = GObject.registerClass({ child.allocate(childBox); } else { - child.allocate_preferred_size(); + child.allocate_preferred_size(0, 0); } } }